package com.teacold.customdemo.chapter_three;
import android.content.Context;
import android.graphics.Point;
import android.util.AttributeSet;
import android.widget.ImageView;


public class FallingBallImageView extends ImageView {

    public FallingBallImageView(Context context) {
        super(context);
    }

    public FallingBallImageView(Context context,  AttributeSet attrs) {
        super(context, attrs);
    }

    public FallingBallImageView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public void setFallingPos(Point pos){
        layout(pos.x,pos.y,pos.x+getWidth(),pos.y+getHeight());
    }





}
